package net.fckeditor.handlers;

import com.ebiz.ssi.ftp.FTPClientTemplate;

/**
 * @author Xing,XiuDong
 * @version 2010-11-26
 */
public class FTPHandler {

	private static FTPClientTemplate ftpClientTemplate = new FTPClientTemplate();

	static {
		ftpClientTemplate.setServer(PropertiesLoader.getProperty("ftp.server"));
		ftpClientTemplate.setUsername(PropertiesLoader.getProperty("ftp.user_name"));
		ftpClientTemplate.setPassword(PropertiesLoader.getProperty("ftp.password"));
		ftpClientTemplate.setPort(Integer.valueOf(PropertiesLoader.getProperty("ftp.port")));

	}

	public FTPHandler() {

	}

	public static FTPClientTemplate getFTPClientTemplate() {
		return FTPHandler.ftpClientTemplate;
	}
}
